package com.manning.readinglist.service;

import com.manning.readinglist.dao.ReadingListRepositoryDao;
import com.manning.readinglist.model.Book;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Classname ReadingListServiceImpl
 * @Description TODO
 * @Date 2020/5/20 17:23
 * @Created by seed
 */
@Service("readingListService")
public class ReadingListServiceImpl implements ReadingListService {

    @Resource
    private ReadingListRepositoryDao readingListRepositoryDao;
    @Override
    public List<Book> findByReader(String reader) {
        return readingListRepositoryDao.findByReader(reader);
    }

    @Override
    public int save(Book book) {
        return 0;
    }
}
